package com.dfec.service;

import java.sql.SQLException;
import java.util.List;

import com.dfec.model.Praise;

public interface IPraiseService {
    //点赞和取消点赞返回次数
	int updateClickPraise(String phone,String new_id,String addOrdel) throws SQLException ;
	//获取点赞用户信息
	List<Praise> getPraisePeopleListByNewsId(String new_id) throws SQLException;
	//是否点过赞
	boolean getPraiseByNewsIdAndPhone(String phone,String new_id) throws SQLException;
	//取消点赞删除点赞记录
	boolean delPraiseByNewsIdAndPhone(String phone,String new_id) throws SQLException;
}
